run test in headless mode